import request from '@/utils/request'

// 查询调研详情列表
export function listInfo(query) {
  return request({
    url: '/research/info/list',
    method: 'get',
    params: query
  })
}

// 查询调研详情详细
export function getInfo(id) {
  return request({
    url: '/research/info/' + id,
    method: 'get'
  })
}

// 新增调研详情
export function addInfo(data) {
  return request({
    url: '/research/info/add',
    method: 'post',
    data: data
  })
}

// 修改调研详情
export function updateInfo(data) {
  return request({
    url: '/research/info/edit',
    method: 'post',
    data: data
  })
}

// 删除调研详情
export function delInfo(id) {
  return request({
    url: '/research/info/' + id,
    method: 'delete'
  })
}
//修改审核状态
export function approveInfo(id,status) {
  return request({
    url: '/research/info/approve?id='+id+'&status='+status,
    method: 'post'
  })
}
